package com.chinaoly.myapplication;


import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

import com.chen.glide_ex.Base64tUtil;
import com.chinaoly.annotation.CreateFactory;

@CreateFactory
public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final ImageView iv = findViewById(R.id.iv);
        findViewById(R.id.btn_refresh).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Base64tUtil.LoadImageFromBase64(iv, Base64Constant.pic);
                // startActivity(new Intent(v.getContext(),TActivity.class));
            }
        });
        findViewById(R.id.btn_jump).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(v.getContext(),TActivity.class));
            }
        });

        //Cj66 a;
    }
}
